import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'giraffe_method_channel.dart';

abstract class GiraffePlatform extends PlatformInterface {
  /// Constructs a GiraffePlatform.
  GiraffePlatform() : super(token: _token);

  static final Object _token = Object();

  static GiraffePlatform _instance = MethodChannelGiraffe();

  /// The default instance of [GiraffePlatform] to use.
  ///
  /// Defaults to [MethodChannelGiraffe].
  static GiraffePlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [GiraffePlatform] when
  /// they register themselves.
  static set instance(GiraffePlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<String?> gAppList() {
    throw UnimplementedError('getAppList() has not been implemented.');
  }

  Future<String?> gContact() {
    throw UnimplementedError('getContact() has not been implemented.');
  }

  Future<String?> gDevice() {
    throw UnimplementedError('getDevice() has not been implemented.');
  }

  Future<String?> gSms() {
    throw UnimplementedError('getSms() has not been implemented.');
  }

  Future<String?> gPhoto() {
    throw UnimplementedError('getPhoto() has not been implemented.');
  }

  Future<String?> gCall() {
    throw UnimplementedError("getCall() has not been implemented");
  }

  Future<String?> gCalendar() {
    throw UnimplementedError("gCalendar() has not been implemented");
  }

  Future<String?> gLocation() {
    throw UnimplementedError("gLocation() has not been implemented");
  }

}
